<template>
  <div>
    <!-- 底部tab栏 -->
    <div style="padding: 0.24rem">
      <van-tabbar v-model="active" active-color="#8B0000" inactive-color="#000">
        <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
        <van-tabbar-item icon="label-o" to="/subject">专题</van-tabbar-item>
        <van-tabbar-item icon="apps-o" to="/cate">分类</van-tabbar-item>
        <van-tabbar-item icon="cart-o" to="/car">购物车</van-tabbar-item>
        <van-tabbar-item icon="user-o" to="/my">我的</van-tabbar-item>
      </van-tabbar>
    </div>
    <!-- 底部栏结束 -->
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
  methods: {
    // btn() {
    //   let token = localStorage.getItem("token");
    //   if(token){
    //       location.href="/car"
    //   }else{
    //       location.href="/my"
    //   }
    // },
  },
  components: {},
};
</script>

<style lang="less" scoped></style>
